<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:mo="https://gitee.com/lkzgx365/all-memory">
<head th:replace="/common/template :: header(~{::title},~{::link},~{::style})">
    <link rel="stylesheet" th:href="@{/lib/zTree_v3/css/zTreeStyle/zTreeStyle.css}" type="text/css">
</head>
<body>
<div class="layui-form timo-compile">
    <form th:action="@{/business/logistics/save}">
        <input type="hidden" name="id" th:if="${logistics}" th:value="${logistics.id}"/>
        <div class="layui-form-item">
            <label class="layui-form-label required">收件人电话</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="receivePhone" th:readonly="${logistics?.id}"  placeholder="收件人电话" th:value="${logistics?.receivePhone}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">邮政编码</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="postCode"  placeholder="邮政编码" th:value="${logistics?.postCode}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">详细地址</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="address"  placeholder="详细地址" th:value="${logistics?.address}">
            </div>
        </div>
        <div class="layui-form-item timo-finally">
            <button class="layui-btn ajax-submit"><i class="fa fa-check-circle"></i> 保存</button>
            <button class="layui-btn btn-secondary close-popup"><i class="fa fa-times-circle"></i> 关闭</button>
        </div>
    </form>
</div>
<script th:replace="/common/template :: script"></script>
<script type="text/javascript" th:src="@{/js/plugins/jquery-2.2.4.min.js}"></script>
<script type="text/javascript" th:src="@{/lib/zTree_v3/js/jquery.ztree.core.min.js}"></script>
<script type="text/javascript" th:src="@{/js/timoTree.js}"></script>
<script type="text/javascript">
    // 树形菜单
    $.fn.selectTree();
</script>
</body>
</html>